package com.beone.smart.smartBeauty.utils;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * @Date: 2019/9/27
 * @Author: yangjie
 * desc:
 **/
public class LocalTimeUtil {
    public static LocalDateTime getDateTime() {
        return LocalDateTime.now();
    }

    public static String getDateTimeString() {
        LocalDateTime now = LocalDateTime.now();
        DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
        return dtf.format(now);
    }

}
